package com.ido.babyshow.model;

import java.util.Comparator;
import java.util.TreeMap;

import sun.misc.Compare;

public class SortMap
{
    public static void main(String[] args)
    {
        int x=1234;
//        int y=4321;
        int sum=0;
        int y=1;
        for(int i=1;i<5;i++){
            y=getFor(i);
            sum=sum+(i*y*x);
        }
        System.out.println(sum);
        
  
    }
    public static int getFor(int i){
        int sum=1;
        for(int j=1;j<i;j++){
            sum=sum*10; 
        }
        return sum;
    }
    
}

class Model{
    int id;
    String name;
    float money;
}
class Comp implements Comparator{

    @Override
    public int compare(Object o1, Object o2)
    {
        Model v1=(Model)o1;
        Model v2=(Model)o2;
        if(v1.money>v2.money){
            return 1;
        }else if(v1.money<v2.money)
            return -1;
        return 0;
    }
    
}